package com.xinghen.dto;

import com.xinghen.validate.MyValid;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xinghen
 * @ClassName: User
 * @Package: com.xinghen.dto
 * @Description user
 * @create 2018/04/08 20:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @MyValid(message = "用户名有错")
    private String username;

    private String password;

}
